import React from 'react'
import { Button } from 'antd'
import PublishTable from '../../../components/publish-manage/publishTable'
import usePublish from '../../../components/publish-manage/usePublish'

export default function Unpublished() {
    // 1=== 待发布的
  const { dataSource, handlePublish } = usePublish(1)

  return (
    <div>
      <PublishTable
        dataSource={dataSource}
        button={(id) => (
          <Button Button type="primary" onClick={() => handlePublish(id)}>
            发布
          </Button>
        )}
      ></PublishTable>
    </div>
  )
}
